import Layout from '../views/Layout.vue'

const routes = [
    {
        path: '/',
        name: 'Layout',
        component: Layout,
        children: [
            {
                path: '/planner',
                name: 'Planner',
                component: () => import('../views/Planner')
            },
            {
                path: "/",
                name: "NavMenu",
                component: () => import('../components/NavMenu.vue'),
                meta: {
                    isLogin: true
                },
                children: [
                    //这是内容管理
                    {
                        path: "/contentAdmain/aboutCopy",//关于团队介绍文案
                        name: "AboutCopy",
                        component: () => import('../views/contentAdmain/AboutCopy.vue'),
                        meta: {
                            isLogin: true
                        }
                    },
                    {
                        path: "/contentAdmain/bannerAdmain",//bannner管理
                        name: "bannerAdmain",
                        component: () => import('../views/contentAdmain/BannerAdmain'),
                        meta: {
                            isLogin: true
                        }
                    },
                    {
                        path: "/contentAdmain/bottomCopy",//底部文案、二维码设置
                        name: "bottomCopy",
                        component: () => import('../views/contentAdmain/BottomCopy.vue'),
                        meta: {
                            isLogin: true
                        }
                    },
                    {
                        path: "/contentAdmain/cooperationAdmain",//合作伙伴管理
                        name: "cooperationAdmain",
                        component: () => import('../views/contentAdmain/CooperationAdmain.vue'),
                        meta: {
                            isLogin: true
                        }
                    },
                    {
                        path: "/contentAdmain/homeAdmain",//首页推荐管理
                        name: "homeAdmain",
                        component: () => import('../views/contentAdmain/HomeAdmain.vue'),
                        meta: {
                            isLogin: true
                        }
                    },
                    {
                        path: "/contentAdmain/joinCopy",//加入团队介绍文案
                        name: "joinCopy",
                        component: () => import('../views/contentAdmain/JoinCopy.vue'),
                        meta: {
                            isLogin: true
                        }
                    },
                    //成员管理
                    {
                        path: "/memberAdmain/hostAdmain",//主持人管理
                        name: "hostAdmain",
                        component: () => import('../views/memberAdmain/HostAdmain.vue'),
                        meta: {
                            isLogin: true
                        }
                    },
                    {
                        path: "/memberAdmain/newAdmain",//新人管理
                        name: "newAdmain",
                        component: () => import('../views/memberAdmain/NewAdmain.vue'),
                        meta: {
                            isLogin: true
                        }
                    },
                    {
                        path: "/memberAdmain/weddingAdmain",//婚庆公司管理
                        name: "weddingAdmain",
                        component: () => import('../views/memberAdmain/WeddingAdmain.vue'),
                        meta: {
                            isLogin: true
                        }
                    },
                    //成员订单中心
                    {
                        path: '/memberOrder/hostOrder',//主持人订单中心
                        name: 'hostOrder',
                        component: () => import('../views/memberOrder/HostOrder.vue'),
                        meta: {
                            isLogin: true
                        }
                    },
                    //其他管理
                    {
                        path: '/otherAdmain/admain',//管理员配置
                        name: 'admain',
                        component: () => import('../views/otherAdmain/Admain'),
                        meta: {
                            isLogin: true
                        }
                    },
                    {
                        path: '/otherAdmain/admainFee',//管理费记录
                        name: 'admainFee',
                        component: () => import('../views/otherAdmain/AdmainFee'),
                        meta: {
                            isLogin: true
                        }
                    },
                    {
                        path: '/otherAdmain/hostSet',//主持人等级设置
                        name: 'hostSet',
                        component: () => import('../views/otherAdmain/HostSet'),
                        meta: {
                            isLogin: true
                        }
                    },
                    //微信绑定说明
                    {
                        path: '/wxExplain/bindInfo',//绑定成功、取消绑定通知
                        name: 'bindInfo',
                        component: () => import('../views/wxExplain/BindInfo'),
                        meta: {
                            isLogin: true
                        }
                    },
                    {
                        path: '/wxExplain/infoModule',//消息模板--订单模板 下单、取消订单
                        name: 'infoModule',
                        component: () => import('../views/wxExplain/InfoModule'),
                        meta: {
                            isLogin: true
                        }
                    },
                    {
                        path: '/wxExplain/sendInfo',//推送消息 流程说明
                        name: 'sendInfo',
                        component: () => import('../views/wxExplain/SendInfo'),
                        meta: {
                            isLogin: true
                        }
                    },
                    {
                        path: '/wxExplain/wxHtml',//微信绑定账号页面
                        name: 'wxHtml',
                        component: () => import('../views/wxExplain/WxHtml'),
                        meta: {
                            isLogin: true
                        }
                    },
                ]
            },


        ]
    },
    {
        path: "/login",
        name: "Login",
        component: () => import("../views/Login.vue")
    },

]

export default routes